from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client

async def main():
    async with stdio_client() as (read, write):
        async with ClientSession(read, write) as session:
            result = await session.call_tool('add_tool', [[1, 2], [3, 4]], [[5, 6], [7, 8]])
            print(f"Addition Result: {result}")

# 运行异步主函数
import asyncio
asyncio.run(main())